package com.common.frame.listener



import android.view.SurfaceHolder

class SurfaceCreatedCallback(val callback: (holder: SurfaceHolder) -> Unit) :
    SurfaceHolder.Callback {

    override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
    }

    override fun surfaceDestroyed(holder: SurfaceHolder) {
    }

    override fun surfaceCreated(holder: SurfaceHolder) {
        callback(holder)
    }
}